package com.beehoo.dcportal.admin.service;

import java.util.List;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.CommunityBean;

public interface CommunityService {

	/**
	 * 查询中心社区
	 * 
	 * @param streetId
	 * @return
	 * @throws BaseException
	 */
	public List<CommunityBean> queryCommunities(String streetId)
			throws BaseException;

	/**
	 * 查询中心社区
	 * 
	 * @param streetId
	 * @param communityId
	 * @return
	 * @throws BaseException
	 */
	public CommunityBean queryCommunity(String streetId, String communityId)
			throws BaseException;

	/**
	 * 添加中心社区
	 * 
	 * @param communityBean
	 * @throws BaseException
	 */
	public void addCommunity(CommunityBean communityBean)
			throws BaseException;

	/**
	 * 更新中心社区
	 * 
	 * @param communityBean
	 * @throws BaseException
	 */
	public void updateCommunity(CommunityBean communityBean)
			throws BaseException;

	/**
	 * 删除中心社区
	 * 
	 * @param communityId
	 * @throws BaseException
	 */
	public void delCommunity(String communityId) throws BaseException;
}
